import { Component, OnInit } from '@angular/core';
import { MineService } from '../service/mine.service';

@Component({
  selector: 'app-me',
  templateUrl: './me.page.html',
  styleUrls: ['./me.page.scss'],
})
export class MePage implements OnInit {

  photoUrl: string;

  constructor(private mineService: MineService) { }

  ngOnInit() {
    this.photoUrl = this.mineService.getPhotoUrl()
    this.mineService.getLoginDataObservable().subscribe(data => this.photoUrl = data.photoUrl)
  }
}
